package org.amicofragile.test.jbehave;

import java.util.HashSet;
import java.util.Set;

public class Person {
    private final String name;
    private final Set<Pet> pets;
    public Person(String name) {
	this.name = name;
	this.pets = new HashSet<Pet>();
    }
    public void addPet(final Pet pet) {
	this.pets.add(pet);
    }
    
    public int getPetsCount() {
	return this.pets.size();
    }
    @Override
    public String toString() {
	return "Person [name=" + name + ", pets=" + pets + "]";
    }
}
